You should NOT run optimizations plans to often on your database. They will affect performance, especially if you're rebuilding Indexes. Depending of the kind of database and the type of...
Go to the MS-SQL instance and right click, then Properties>Database Settings. Once there, the last portion will tell you the default location for data and log files.